<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('Promotion/rebatelist')}">折扣分类</a></li>
        <li class="active"><a href="{:url('Promotion/prolist')}">促销设置</a></li>
        <li class="active"><a href="{:url('Promotion/setmealist')}">套餐设置</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('blog/Promotion/setmealist')}">
        <a class="btn btn-danger" href="{:url('blog/Promotion/setaddlist')}">添加套餐商品</a>&nbsp;&nbsp;&nbsp;&nbsp;
        <input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}" placeholder="店铺/套餐名称">
        <input type="submit" class="btn btn-primary" value="搜索"/>
    </form>
    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>店铺</th>
                <th>开始时间</th>
                <th>结束时间</th>
                <th>套餐名称</th>
                <th>套餐总价格</th>
                <th>套餐折扣后价格</th>
                <th>套餐优惠金额</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <php>
                $user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));
            </php>
           <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.store_name}</td>
                    <td>{$vo.set_start}</td>
                    <td>{$vo.set_end}</td>
                    <td>{$vo.set_name}</td>
                    <td>{$vo.set_price}</td>
                    <td>{$vo.set_prices}</td>
                    <td>{$vo.set_pricet}</td>
                    <td>{:date('Y-m-d H:i:s',$vo['set_startime'])}</td>
                    <td>
                        <a href="javascript:parent.openIframeLayer('{:url('Promotion/setkouUpdate',array('nav_id'=>$vo['set_id']))}',{});">修改</a>
                        <a href="javascript:parent.openIframeLayer('{:url('Promotion/guionelist',array('nav_id'=>$vo['set_id']))}',{});">添加规格</a>
                        <a href="{:url('Promotion/setDelete',array('nav_id'=>$vo['set_id']))}">删除</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>